package tests;

import java.io.IOException;

import org.xml.sax.SAXException;

import spotGUI.sideBar.utils.WeatherData;
import spotGUI.sideBar.utils.XMLWeatherDataReader;
import utils.StackTracePrinter;

public class XMLReaderTest {
	
	
	private static final String XML_URL = "http://weather.yahooapis.com/forecastrss?w=718345&u=c";
	
	
	public static void main(String[] args) {
	
		WeatherData[] data;
		try {
			data = XMLWeatherDataReader.getSharedInstance().getWeatherData(XML_URL);
		} catch (SAXException e) {
			// TODO Auto-generated catch block
			StackTracePrinter.print(e);
		} catch (IOException e) {
			// TODO Auto-generated catch block
			StackTracePrinter.print(e);
		}
	}
	
	
	
}
